<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 300px;
            height: 300px;
            background-color: skyblue;
            position: absolute;
            left: 0;
            top: 0;
            transition: all 1s linear;
        }
    </style>
</head>
<body>
    <div></div>

    <script>
        /* 
            1.开始触摸
                touchsatrt
            2.触摸移动
                touchmove
            3.触摸结束 
                tocuend
        
        */

        var div = document.querySelector('div');

        div.ontouchsatrt = function(){
            // 手指接触到屏幕 开始触发
            console.log('开始触摸');
        }

        div.ontouchmove = function(){
            // 手指在屏幕上移动时   实时触发
            console.log('开始移动');
        }

        div.ontouchend = function(){
            // 手指离开屏幕的瞬间
            console.log('开始结束');
        }
    </script>
</body>
</html>